package lyxs_916.drawabletest;

import android.graphics.drawable.ClipDrawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import lyxs_916.drawabletest.R;

public class ClipDrawableActivity extends AppCompatActivity {
    ImageView image;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_clip);

        image = (ImageView) findViewById(R.id.image);
        ClipDrawable cd = (ClipDrawable) image.getDrawable();
        cd.setLevel(5000);
        cd.setAlpha(80);


    }


}
